package net.ericaro.neojavagen.blocks;

/**
 * <b>AssertStatement</b> ::= <{@link net .ericaro .neojavagen .blocks .AssertWithoutMessage AssertWithoutMessage}> <
 * {@link net .ericaro .neojavagen .blocks .AssertWithMessage AssertWithMessage}>
 * 
 * @author eric@ericaro.net
 */
public class AssertStatement extends net.ericaro.neojavagen.JavaPartComposition implements net.ericaro.neojavagen.blocks.StatementWithoutTrailingSubstatement {
	private net.ericaro.neojavagen.blocks.AssertWithMessage assertWithMessage;

	private net.ericaro.neojavagen.blocks.AssertWithoutMessage assertWithoutMessage;

	public AssertStatement(net.ericaro.neojavagen.blocks.AssertWithoutMessage assertWithoutMessage, net.ericaro.neojavagen.blocks.AssertWithMessage assertWithMessage) {
		super();
		this.assertWithoutMessage = assertWithoutMessage;
		this.assertWithMessage = assertWithMessage;
	}

	public net.ericaro.neojavagen.blocks.AssertWithMessage getAssertWithMessage() {
		return assertWithMessage;
	}

	public net.ericaro.neojavagen.blocks.AssertWithoutMessage getAssertWithoutMessage() {
		return assertWithoutMessage;
	}

	public void setAssertWithMessage(net.ericaro.neojavagen.blocks.AssertWithMessage assertWithMessage) {
		this.assertWithMessage = assertWithMessage;
	}

	public void setAssertWithoutMessage(net.ericaro.neojavagen.blocks.AssertWithoutMessage assertWithoutMessage) {
		this.assertWithoutMessage = assertWithoutMessage;
	}

	@Override
	public java.lang.String toString() {
		return print(assertWithoutMessage, assertWithMessage);
	}
}
